﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WSPay.Web.Models
{
    public class JsonMessage
    {
        public bool Status
        {
            get;
            set;
        }
        public string Info
        {
            get;
            set;
        }
        public object Data
        {
            get;
            set;
        }
        public PageList Page
        {
            get;
            set;
        }
        public JsonMessage(bool status) : this(status, string.Empty, new object())
        {
        }
        public JsonMessage(bool status, object data) : this(status, string.Empty, data)
        {
        }
        public JsonMessage(bool status, string msg) : this(status, msg, new object())
        {
        }
        public JsonMessage(bool status, string msg, object data)
        {
            this.Status = status;
            this.Info = msg;
            this.Data = data;
        }
        public JsonMessage(bool status, string msg, object data, PageList page)
        {
            this.Status = status;
            this.Info = msg;
            this.Data = data;
            this.Page = page;
        }
    }
}